<template>
  <div id="top">
  <van-nav-bar
    :title="pageinfo.name"
    left-text="返回"
    right-text=""
    left-arrow
    @click-left="onClickLeft"
    @click-right="onClickRight"
  />
  </div>
</template>

<script>
export default {
  props: ['pageinfo'],
  name: 'Top',
  methods: {
    onClickLeft () {
      console.log(1)
      console.log(this.pageinfo.name)
    },
    onClickRight () {
    }
  }
}
</script>

<style scoped>

</style>
